STEP 13: We're almost done with our loop. All we have to do is make our player move back after kicking the ball.

  • In GRAPHICS, from drop Move Left OUTSIDE your else block but INSIDE your loop.
  • It should only be indented ONCE. There should be only a purple highlight before the command like this: ····
  • Change the variable name in front of .move_left() from sprite to player.
  • Change the integer argument inside from 50 to 20.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)